import React, {Component} from 'react' 
import Admin from './pages/admin/admin.js'
import Login from './pages/login/login.js'
import {BrowserRouter, Switch, Route} from 'react-router-dom'



class App  extends  Component{
  

 render(){
  return (
    <div className="App">
    <BrowserRouter>
     <Switch>
       <Route path='/login' component={Login}></Route>
       <Route path='/' component={Admin}></Route>
     </Switch>
    </BrowserRouter>
    </div>
  );
 }
 
}

export default App;